# 基础镜像
FROM java:8

MAINTAINER sssdnsy

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \&& echo 'Asia/Shanghai' >/etc/timezone

VOLUME /tmp


ENV PARAMS=""

ADD target/melon-admin-*.jar /app.jar

# 容器启动执行命令
#ENTRYPOINT ["java", "-jar", "$PARAMS /app.jar"]
ENTRYPOINT ["sh","-c","java -jar /app.jar $PARAMS"]


EXPOSE 8080
